package com.sky.holder;

/**
 * @program: sky-take-out
 * @description:
 * @author: 酷炫焦少
 * @create: 2024-11-15 11:14
 **/
public class EmployeeHolder {

    private static final ThreadLocal<Long> employeeThreadLocal = new ThreadLocal<>();

    public static void set(Long empId) {
        employeeThreadLocal.set(empId);
    }

    public static Long get() {
        return employeeThreadLocal.get();
    }

    public static void remove() {
        employeeThreadLocal.remove();
    }

}
